#ifndef _GAMECOMMON_H_
#define _GAMECOMMON_H_

#include "Defines.h"
#define TEXT_FILENAME_SIZE 1024

class nCGame
{
public:

	// Main Methods
	static void gamePreStart();

	static void gameStart();
	static void gamePaint();
	static bool gameUpdate();
	static void gameStop();
	static void gameRelease();

	// Main Events
	static void gameMouseDown(float x, float y);
	static void gameMouseUp(float x, float y);
	static void gameMouseDrag(float x, float y);
	static void gameAccelerated(float x, float y, float z);
	
	static char *GetLanguage();
	static int GetOrientation();

	//Custom Controls provided by UIApplication
	static void setKeyboardInputVisible(bool v);
	static bool getKeyboardInputVisible();

	static char* getInputKeyboard(int *len);
	static void setTextKeyboard(char *text);

	static bool _gamePaused;

	static bool _gameRestart;
	//static bool _gameNeedSave;
	
	static bool _movieFinished;
	static void playMovie(const char *fileName);
	static void stop();
	static bool isMovieDone();
	static bool isInputDone();
	static void movieDoneCallback();
	static void GetFileName(const char* filename, bool bWrite, char *pout);
	
	static char stc_ResourcesPath[TEXT_FILENAME_SIZE];
	static char stc_SavePath[TEXT_FILENAME_SIZE];
	
#ifdef USE_IPHONE_LABEL_NAME
	static UILabel* addLabel(const char* text, int x, int y, int w, int size);
	static UILabel* getLabel(int _id);
	static void removeLabels();
#endif
};

#endif // _GAMECOMMON_H_